package com.xiaoyu.lanling.feature.friend.fragment

import com.xiaoyu.base.view.list.BaseListViewController
import com.xiaoyu.lanling.feature.friend.controller.SubscribeListViewController
import com.xiaoyu.lanling.feature.friend.data.SubscribeListData
import com.xiaoyu.lanling.feature.friend.model.FriendItem
import com.xiaoyu.lanling.feature.friend.viewholder.FriendViewHolder
import kotlinx.android.synthetic.main.fragment_friend.*

class SubscribeListFragment : FriendListFragment() {

    override fun getViewHolderClass(): Class<*> {
        return FriendViewHolder::class.java
    }

    override fun getListController(): BaseListViewController<FriendItem, Any>? {
        context?.let {
            val listData = SubscribeListData()
            return SubscribeListViewController.create(it, listData, null, recyclerview)
        }
        return null
    }
}